<template>
  <p-config-provider :locale="locale">
    <div id="app">
      <router-view />
    </div>
  </p-config-provider>
</template>

<script>
  import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN';
  import {getMesHrEmployeeinfo} from "@/api/login";
  export default {
    data() {
      return {
        locale: zhCN,
      }
    },
    methods:{
      getMesHrEmployeeinfo(){
        getMesHrEmployeeinfo().then( res =>{
          if (res.code === 0){
            localStorage.setItem('employeeinfo',JSON.stringify(res.data));
          }
        });
      }
    },
    created(){
      this.getMesHrEmployeeinfo();
    },
  }
</script>
<style lang="less">
#app {
  width: 100%;
  height: 100%;
  display: flex;
}
</style>
